home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
biz
/
dbase
/
vmax412.lha
/
videomaxe
/
Install.bat
< prev
next >
Wrap
DOS Batch File
|
1993-04-16
|
709b
|
36 lines
.key com/a,pat/a,dir/a,opt1,opt2,opt3,opt4
.bra {
.ket }
; $VER: dpat 38.1 (11.10.91)
; Do wildcards for double arg commands
FailAt 21
Echo >ENV:qw{$$} "{dir}" FIRST 256
IF $qw{$$} EQ ":"
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}%s*" {opt1} {opt2} {opt3} {opt4}"
Skip doit
EndIF
IF $qw{$$} EQ "/"
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}%s*" {opt1} {opt2} {opt3} {opt4}"
Skip doit
EndIF
IF EXISTS {dir}
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}/%s*" {opt1} {opt2} {opt3} {OPT4}"
Else
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}*" {opt1} {opt2} {opt3} {OPT4}"
EndIF
Lab doit
IF NOT FAIL
Execute T:q{$$}
Else
Echo "{pat} not found"
EndIF
FailAt 10